Skip to content

test(rest, dogfood): pin the action list agreeing with the by-name read beside a package-less action on another object - #34073

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/area-E1b-33904
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/area-E1b-33904

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steedos · project thread
Part of #33904 — this PR lands the card's measurement and its pins: the HTTP reach of item 1 (not reached; the card regrades to p3) and item 2 (closed on main by #33898, pinned here). The listing seam itself (readFlattenedMetaItems) is not changed and stays on the card at p3.

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:只加测试,不改产品代码。一是真实启动的 showcase 上,经 HTTP 钉住"动作列表与按名读取答同一项"(包先存、环境先存两种顺序);二是钉住"停用包在另一个对象上持有同名动作时,环境自己的动作按名读取照常返回、不挂停用包的包名"(fix(metadata-protocol): an action's artifact envelope is grafted only onto the item its package holds at that (object, name) #33898 已在 main 修好)。
  • 为什么改:卡 metadata-protocol: the merged action listing leaves out the environment package-less row on another object while the by-name read serves it #33904 要求先测 HTTP 能否遇到"列表漏掉环境自建动作"。实测 HTTP 走不到这个形状:托管包的同名动作在另一个对象上保存会被 403 拒绝;可写包则保存后只剩一条,列表和按名读取一致。所以按卡的规则降为 p3 并补钉子。
  • 风险与回滚:零产品风险,只多两个测试用例块和一个 dogfood 测试文件;回滚即还原本 PR。
  • 先看:packages/qa/dogfood/test/action-list-packageless-other-object.dogfood.test.ts(HTTP 一致性钉子);packages/rest/src/meta-qualified-item-route.test.ts 中 [#33904] a disabled holder on another object。
  • 两分钟验证:pnpm --filter @objectstack/rest exec vitest run src/meta-qualified-item-route.test.ts -t 33904,预期 2 个用例通过。
  • 需要你做的:无,席位落地。

What changes

Tests only; no product file moves.

  1. Item 1, HTTP reach (measured first, as the card asks). On a real showcase boot (bootShowcase, admin session), the card's shape (a package's action on one object and the environment's package-less row of the same name on another, both stored) is not reached over HTTP:

    • managed code package (showcase_open_docs on showcase_task): PUT /api/v1/meta/action/showcase_open_docs with objectName: showcase_product and no ?package= answers 403 NOT_OVERRIDABLE; the list and the by-name read keep answering the package's item;
    • Studio-created writable package, both save orders: each save answers 200, and the store ends with ONE item of the name. The list, ?names=, ?package= and the by-name reads all answer that one item.

    So the listing and the by-name read agree on every HTTP-reachable state measured, and the card regrades to p3 (its rule 3). action-list-packageless-other-object.dogfood.test.ts pins that agreement in both orders.

  2. Item 2 (the seat's addition). A package-less action on contact beside a DISABLED holder of the name on account: the ADR-0150: the _env qualifier admits a name held only by disabled packages (404, not 409) on the item face (#32183 row 17, R4-B2) #33385 fold's harness probe reported the by-name read stamping the disabled holder's _packageId, so the face withheld the item (404). Re-run on main with fix(metadata-protocol): an action's artifact envelope is grafted only onto the item its package holds at that (object, name) #33898 (68e726d631): served (200), objectName: contact, no _packageId, no package provenance, in both registration orders, for the environment's own item and for a registry-only package-less item. Pinned as a nested describe in the metadata-protocol: an action's route beside a package-less row on another object judges no declaration for the holder's own object, and serves the row under the holder's envelope (ADR-0150 D4) #33456 block of the REST harness, and ablated (below). The reading is also on the card.

No answer moves, so there is no FROM→TO table.

Tests

  • packages/rest/src/meta-qualified-item-route.test.ts, describe [#33904] a disabled holder on another object (2 cases × 2 registration orders; real SchemaRegistry, real protocol, real RestServer route table).
  • packages/qa/dogfood/test/action-list-packageless-other-object.dogfood.test.ts (new, isolated project; 2 cases, one per save order).

Acceptance notes

  • Not changed here, carried on the card at p3: below HTTP the merged list slots an action by name alone (mergePackageAwareOverlay), and the sealed-managed decline (declinesStoredRow, isStoredEntryOfDeclinedName) judges an action by name, not by (object, name). A package-less row stored beside a package's action on another object (the boot harness shape) is therefore left out of the list while the bare by-name read serves it. No HTTP save reaches that state today (above). NOT MEASURED: an environment row authored BEFORE a managed package that ships the same name on another object is installed.
  • Reported to the seat, not fixed here: with a writable package holding qa_x on showcase_task, a package-less PUT /meta/action/qa_x on showcase_product answers 200 and the package's own address then serves the product body (the package's action moved object); in the other order the package's save takes the environment's item over. Both read against ADR-0150 D4's (package, object, name) key; the save door is outside this PR's surface.

Verification

Head ab5aeb0cfd (origin/main 159757abc merged in).

Tests and typecheck (touched packages: rest, dogfood)
  • Closure build pnpm --filter "@objectstack/dogfood^..." build under the verify lock: exit 0.
  • pnpm --filter @objectstack/rest exec vitest run src/meta-qualified-item-route.test.ts: Test Files 1 passed; Tests 325 passed. pnpm --filter @objectstack/rest typecheck: exit 0.
  • pnpm --filter @objectstack/dogfood exec vitest run test/action-list-packageless-other-object.dogfood.test.ts: Test Files 1 passed; Tests 2 passed. pnpm --filter @objectstack/dogfood typecheck: exit 0.
  • eslint --no-inline-config over the two files: exit 0.
  • Diff is test-only (no source, no published file): no dependent suite is owed; the full dogfood battery is CI's (no !, no narrowing arm).
Ablation of the item 2 pin

packages/metadata-protocol/src/protocol-artifact-lookup.ts: #33898's owner-key rule bypassed through scripts/ablation-replace.mjs (anchor if (owner === undefined || singular !== 'action') return artifact; gains || name !== '__ablation_33904__', x0 to x1), metadata-protocol rebuilt, ablation-dist-preflight.mjs marker present (exit 0). -t '33456|33904': 5 red of 8, both new cells [404, undefined, undefined, false] against [200, 'contact', undefined, false], the three #33456 shapes red with the holder's envelope; the three CONTROLs green. Restored: blob equals HEAD (288b99c4f897), git diff HEAD empty, rebuilt, preflight --absent exit 0, 8 of 8 green. The dogfood pin is a positive agreement pin and is not ablated.

HTTP reach readings (the probe, not committed)

Real showcase boot, admin session, head ac6ab305c5:

  • Managed package: PUT /meta/action/showcase_open_docs (objectName: showcase_product, no ?package=) answered 403 NOT_OVERRIDABLE; list, ?names=, ?package=com.example.showcase and the by-name read all answered ["showcase_task","Open Docs","com.example.showcase","package"].
  • Writable package, the package's save first: both PUTs 200; list, ?names=, ?package= and the bare and ?package= by-name reads all answered ["showcase_product","env on product","com.example.qaprobe"].
  • Writable package, the environment's save first: both PUTs 200; every read above answered ["showcase_task","pkg on task","com.example.qaprobe"] (and /_env/ too).
Derived gate families

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack at ab5aeb0cfd: 54 families. 52 run locally, each exit 0 captured before any pipe; --ran reconciliation: 54 derived, 52 run, 0 NOT-MEASURED, 2 UNRUN. Declared to CI: pnpm check:dual-build-cjs-loads and pnpm check:type-check-debt (the latter takes the shared lock; the diff moves no tsconfig, package manifest or source).


Generated by Claude Code

🤖 Generated with Claude Code

…less action on another object

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…ide a package-less save on another object

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

Nothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 0 changed package(s)), so this run has no opinion about the docs.

What this run could not see

Coarse fallback — 0 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json d3bea96d8531495c9d1c0f1c69d58308dda74433 → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12

Request: review · PR #34073 · area S5 · Part of #33904 · head ab5aeb0cfdfc0f1c6cfd23f44ee32eb47e3eb167 (final; CI green: 36 success, 21 skipped)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jRMKz5NhWVrE4E1U5x

Review claim · head ab5aeb0 · 2026-11-15T18:19Z (review-c, S5; ACCEPT read, no contract face)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jRMKz5NhWVrE4E1U5x

Review — PASS

Head-sha: ab5aeb0cfdfc0f1c6cfd23f44ee32eb47e3eb167
Reviewer: review-c · read 2026-11-15T18:21Z · ordinary ACCEPT read (review-checklist.md); no contract face, so no contract record is owed
Implemented-by: claude/area-E1b-33904 (area S5) · Reviewed-by: session_01QsR2jRMKz5NhWVrE4E1U5x

  • Scope: tests only (+114/−0). One new isolated dogfood file and one nested describe in the REST harness. skip-changeset fits because nothing published moves. Clause-②: no and Metadata-protocol: none are true. Part of #33904 is right, since the card stays open at p3 for the listing seam.
  • REST pin: [#33904] a disabled holder on another object covers both registration orders and both package-less shapes (stored environment row, registry-only item), with real SchemaRegistry, protocol and route table. The body's ablation of fix(metadata-protocol): an action's artifact envelope is grafted only onto the item its package holds at that (object, name) #33898's owner-key rule turned both new cells red (404) and restored 8 of 8, so the pin bites.
  • Dogfood pin: a positive agreement pin in both save orders. The list, ?names= and ?package= each answer exactly what the by-name read answers. The file lives under the isolated glob project (it writes /meta and creates a package), and its names are unique per order, so the two cases cannot collide. PR runs skip the dogfood shards by design; the body records a local 2/2 pass at this head, and the queue runs the shard.
  • Measurement before regrade: the body measures HTTP reach before regrading (403 NOT_OVERRIDABLE on the managed name; one stored item on a writable package). It names the untested order (an environment row authored before the managed install). The save-door reading is reported to the seat, not fixed here. Both are right for a Part of PR.
  • Checks: all 57 check-runs passed or were skipped, none red; mergeable_state: clean.

No must-fix, no should-fix. Not governed: the area lands this PR per landing-operations.md.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12

席位核对

Verdict: ACCEPT · head ab5aeb0cfdfc0f1c6cfd23f44ee32eb47e3eb167 · area S5 lands it (not governed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant